<?php
	class dbLaboratorio extends db{		
		public $tabela = 'laboratorio';
		
		public function __construct(){
			parent::__construct();
		}		
		
		public function inserirLaboratorio(Laboratorio $laboratorio){
			$nome = $laboratorio->getNome();
			$this->db;
			$this->db->query("INSERT INTO $this->tabela VALUES(null,'$nome')");
			return $laboratorio;
		}
		
		public function listarLaboratorio(){
			$this->db;
			$retorno = $this->db->query("SELECT * FROM {$this->tabela}");
			$retorno->setFetchMode(PDO::FETCH_OBJ);
		return $retorno->fetchAll();		  
	}
	}